Simple Implementation of a Binary Space Partition in C++