min/max depth for a tree