Elements of linear algebra and matrix theory