Calculates angle between two points on a sphere