Tridiagonal Matrices: Thomas Algorithm