refs #4 move distance calculator to more reasonable package
distance calculator will be used later on, so now it is located in global managers. So it can be used in other parts of application