Started rewriting kd-tree implementation. Only leaf nodes contain faces now.