Added a kNN sim for Chapter 2.