alex's solutions to binary trees, and stacks & queues