defined prototypes for node and tree
refactored with build method for node, avoiding ordered arguments
added find function for tree prototype