title: Fastest algorithm for circle shift N sized array for M position
body: <p>What is the fastest algorithm for circle shifting array for M positions? <br/>
  For example, <code>[3 4 5 2 3 1 4]</code> shift M = 2 positions should be <code>[1 4 3 4 5 2 3]</code>.</p>
  
  <p>Thanks a lot.</p>