Modified FLAT-TREE transformation algorithm.