Added Distance and DistanceTests classes