Removes the element at the given index, like GdxArray.removeIndex.
the removed element.
index of the element to remove.