Shift elements in an array to the right by N