A program that works out the distance between two points