minim sum of a set