the midpoint between two coordinates