Binary tree traversal, queue/stack implementation using linked lists