Renamed gentree to tokenize, and the output is now a linked list