adds method that identifies non trivial square roots