use pointer types in moving_spheres_intersection