d = np.sqrt(np.power(self.x[pt[1]] - self.x[start_point[1]], 2) +