adding a basic binary tree with a method that traverse and converts to a linked list in o(n) time o(1) storage