Determine square roots of rational numbers