Added MPI support for kdTrees.
Merge origin/master