Update linalg.rst

Added example for the eig() function. 

Can I add more examples to the documentation? I really think writing examples is good for new users.