Add getindex for Tridiagonal matrices (#5507)