Added thomes tridiagonal algorith