Provide inv and det of Tridiagonal and SymTridiagonal matrices

This PR provides fast methods for computing the inverse and determinant of Tridiagonal (and SymTridiagonal) matrices.