Added Thomes tridiagonal algorithm