implementation of the distance function for various geometry combinations
implementation of comprable distance that takes a strategy
commit of some of the files mentioned in the previous commit