added minor improvement to the TwoSum solver