Fixing default argument issue in search_nn_dist. This was causing nodes to be duplicated in the array returned by the method.