somewhat unroll the code in WER distances computations