Transform classic loops to range-based for loops in module kdtree (#2842)
Transform classic loops to range-based for loops in module kdtree (#2842)

Transform classic loops to range-based for loops in module kdtree

Changes are based on the result of run-clang-tidy -header-filter='.*' -checks='-*,modernize-loop-convert' -fix
Use always const reference in for-ranged loop instead of copying primitive data types

drmateo/pcl,drmateo/pcl,drmateo/pcl,drmateo/pcl,drmateo/pcl