add moving_spheres_intersection function