basic k-nearset neighbor algorithm