move cos_sphere_dist to utils.tools