exchange PatternUnit and PatternElem for consistency with HPDC13 paper