replaced linear neighbor search by a kd-tree (with k=2) based range search
Authored by: laemmel 2013-02-11
Parent: [r22998]
Child: [r23000]