Updated synchronization during computation
Updated knn-example