remove isSquare

remove isSquare() from inverse_gauss