Update kdtree2.cpp
-Fix issue causing incorrect values in compiler-optimized Fortran code
Merge pull request #1 from hbjusa/fix-f90-global

Fix f90 global