Implementing lapack dot methods in linalg dot.h