subsets with duplicates
triange minimum sum path