proving that a number is a perfect square number