calculate sum combination of a sub array sum up to a fixed value