also removed recursion from split plane calculation
changed out parameters to return values
sort subobjects only after adding all