start working on matrix rotation problem