unroll both inner loops