nD support.  More tests.  Handle non-positive distance cases.  New weighting scheme.