Min depth binary search tree.