Fixed dgemv implementation