Create block swap algo for array rotation