Added a bunch of unnecessary tree classes and implemented the queue.