Improved SAH for BVH
Refactored lot of code, removing public members