building transpose stuff into cholesky and LU