vector rotation and reservoir sampling