fixed custom binary tree implementation
trying to perform a DFS on custom tree implementation