added nearestNeighbor algorithm to initialize path.  added handling for cases with 3 or less edges