Added a new test for DGEMV
Reduced memory allocations when calling BLAS and LAPACK