my code is trying to return the median value of a binary search tree. However, when I compile it with the test case, I\'m getting a segmentation error.
My code so far