implement nn_radius()

Closes #2.