K Nearest Values - Coding problem | OneNoughtOne