Add examples and improve linear algebra