Added code for matrix rotation