corrected algorithms for column-major blas calls