added rotate_arr for counterclockwise