add code for finding min distances between points

this is work to determine how far a target is away
from a ships current location