2/6/14: tree class implemented