unnested node, leafnode, and innernode classes from KDTree