Completed Nearest neighbor method and completed nearestneighbor
algorithm