Maximum size square sub-matrix with all 1s