Returns a new array where the elements have been shifted a set amount.
valarray<T> shift(int n) const;
Returns the modified array.