Face Recognition by Matching 2D and 3D Geodesic Distances