finished SplayTree, maxSquareSubMatrix, rotateImage, booleanMatrix and printSpiral