SearchDistance

Add 'start' and 'end' variable. The program calculates the distance which is necessary to pass from the set of points in the array.