implemented Ordered trait in TreeEntry
converted LooseTree to store entries in a SortedSet