Added lua sources for knn