Replace 'shortest solution' heuristic with 'minimal sum'