integrate split bitmasks into tree