Functions on the sphere with critical points in pairs and orthogonal geodesic chords