Adding minSums