lpm2_kdtree function

Local Pivotal Method