Package tutorial.distancefunction

Classes from the tutorial on implementing distance functions.