Fixed LargestSquareSubmatrix solution. I overthought it before.