[core] Traverse method for KD Tree and new unit-tests are added