add tridiag sample