fix Tree sig to accept print function in to_string. Finish the print functionality for rbtree