A fairly simple KNN digit classification algorithm tried out in multiple languages