Binary tree from preorder and inorder sequence

Create a binary tree from preorder and inorder traversal sequence.
BONUS: print_tree() prints the binary tree prettily