Create and solve system of equations A*x = B where A in tridiagonal