Added Lapack in linalg.h and a fixed a minor #elif.

I greped for all lapack dot calls in src and currently sdot and ddot have been used. I implemented it in linalg dot.h. 
I need reviews if its the correct way of doing so. Also if there are changes that need to be made please let me know.