Removing space complexity in MatrixRotate90