Fixed major issues in BLAS routines and added gemv, gemm