Added java code for matrix rotation by 90 degrees