Create a tree structure of friends