Linear algebra with applications