Working-ish

Need to change it to add an output result for when 2 coordinates are
equidistant from another one, or all are of equal distance.