Replaces the element at the specified position in this list with the specified element.
the element previously at the specified position
element to be stored at the specified position
index of the element to replace