Moves the given element from the from index to the to index.
Note: this method makes absolutely no attempt to verify if the given indices are valid.
the index of the element to move
the index to move the element to