updated comments in min_depth algorithm