Optimized versions of filterAcc, union and mostRetweeted