Update examples, improve linear algebra module