Tridiagonal Matrix Algorithm (TDMI)