Training Algorithm : \- Store all the dataPrediction Algorithm : \- Calculate the distance from x to all the points \- Sort the points in the data b