move_n_point function

Move a vector n elements forward or backward.