wbt_k_nearest_mean_filter function

K nearest mean filter