Lint
Make frequencyMap impl clearer
Alloc less in recursive transform