[core] CURE implementation - part 1; [clustering.cure] Removed useless calls during merging; [support.kdtree] Various improvement