Added a class for handlenig distance stuff
FOrgot the file