Which algorithm is a non-parametric method that classifies new points based on the majority class of their nearest neighbors?