add cache aware transpose (d_mat)