added matrix rotation method