Elementary linear algebra with applications