Added a simple algorithm to rotate an array by 90 degrees