sentences:  If the distance value between the query and the selected vertex is smaller than the one between the query and the current element, then the algorithm moves to the selected vertex, and it becomes new enter-point.The algorithm stops when it reaches a local minimum