K-nearest neighbors from scratch in pure Python | Hacker News Reader