added preorder_traversal.
added unique_paths