Progress with the framework and vectorizing kNN