Add AVX transpose and bug fix.