Convert negative indices to positive indices where negative indices are interpreted as indices counting from the back of the vector
Convert negative indices to positive indices where negative indices are interpreted as indices counting from the back of the vector