I was allocating too much memory for the counters.
Introduced the non transpose algorithm, useful to check the new one for
correctness.