1. Write a program that takes n elements as input and inserts them into a heap one by one. Include a function to print out the elements in the heap.
2. Write a program that takes n elements as input and inserts them into a binary tree. Include a function to print out the elements in the tree.