Implement Euclidean distance and k-nearest neighbors | Pitchbook