How would I shift the elements of an array to the right. For example, I want five shifts of the array to look like this:

0 0 0 0 0
0 0 0 0 5
0 0 0 5 2
0 0 5 2 1
0 5 2 1 8
5 2 1 8 7

Hope this makes sense. This shift will happen once per second in a thread that will update data to graph.