finished print_tree() and insert_randoms()