This is a program for finding smallest distance between two points.