Cpmm: cross-product matrix multiplication operation (distributed matrix multiply
by join over common dimension and subsequent aggregation of partial results).
This function pre-aggregates distinct values of recoded columns per partition (part of distributed recode map
construction, used for recoding, binning and dummy coding).