get_Adj function

Get adjacency list of a tree.