A binary search tree which reports its average and maximum depth.