Update to shift method

A bug in the shift method made it not work correctly when a row with 2
unlike numbers where shifted left.