updating a few programs to use the new isqrt function
binary-wise int sqrt without multiply