wcAggregateCases function

Aggregate identical cases.