some basic tests and sqroot estimation method