datastructure: tree: some corrections