added sorted descendents and printing of a tree