Removing unused variable
replacing nearest neighbor grid by static r-tree
fixing tests to reflect new r-tree data structure
Reorder include block according to style guide
Reorder include block according to style guide
adding missing include
const'ing several private function parameters
removing copied profile
Fixing test to reflect new nn grid data structure
some optimization to speed up pbf parsing
refactored some parameter setting