constructed and tested parentPointerList function to take a tree based on children and construct the parent pointer list
created and tested leavesList function to list off the leaves of a forest
created inverse index function. May not work for cases where the domain and range are not 1:n