Convert ray.c to use integer square root routine.