Tridiagonal matrices for CN scheme