Code for knn matting. 10points 20 22points 40 9 off 65points 100 33 off. Searches for the optimal values of k and d for a given time.