Constructing a BVH:
>10: get a normalize vector going from the min point of the AABBs of the set in consideration to the max point
>20: sort all objects by their distance from a plane in the direction of this normal centered about the origin
>30: for each centroid of the objects along the chosen axis beginning at min, ending at max:
>>40: calculate the surface area of the bounding containers on each side of the plane formed by the chosen normal axis which runs through the centroid under consideration
>50: Choose the lowest point (i.e, the least surface area). This is the origin of the splitting plane.
>60: split into two nodes. Left includes objects behind the plane, right includes objects in front
>for left, goto 10.
>for right, goto 10