Added tridiagonal solver to linear algebra code