Fixed tridiagonalAlgorithm