BSPTree class and class of nodes