--- from: http://rosettacode.org/wiki/Isqrt_(integer_square_root)_of_X