Add Geometry distance functions.

Geometry functions will not be used in MeanValue and Barycentric for
the sake of modularity.