Provide inv and det of Tridiagonal and SymTridiagonal matrices