added base structures for trees and tree nodes