Create BSP tree