fixed #12 Solve sherlock-and-squares
changed isSquare function #12 Solve sherlock-and-squares
faster version #12 Solve sherlock-and-squares