use find min in gini_large