Implement Iterator pattern for preorder traversal. Finish toArray method on Heap class via use of iterator.