Small fixes
Implemented sums that allow duplicates