Refactor|BspLeaf: Moved all BspLeaf_* functions to methods of BspLeaf