removed all distance functions from classes, moved into distance.h/cpp