Allow the caller to specify the index to tree-height.