NeighborSearch so they work with all tree types. The modifications I've made
make it so that the referenceCopy and queryCopy matrices aren't full copies of
the referenceSet and querySet matrices when the tree doesn't modify them (in the
case where they aren't modified, it's not necessary to copy them, that's just a
waste of memory).