Fix warning
Add min/max_depth and lowest common ancestor