how to find squares faster