reworked reBSPTree, added tests for RayQueries