[core] Added unit-test for KD Tree; Added comments for KD Tree and CURE