added Node, Branch and Tree objects and a testing script