Added array rotation block swap algorithm