how to find square root without any builtin function