move linear algebra part to another file