I'd like to convert the List (List Int) to a Tree, where it will group similar items together. So imagine the following: [ [ 1 , 2, 3, 4] [ 1 , 2, 5, 6] [ 1 , 2, 3, 7] ] I'd like to get a tree that looks like this: