version 2, tree is built, work on the linklist next