kdtree build-up twice at fast int2ext node map holds iterators instead of object copies some functions const'ed buggy defines fixed