Extends ctranspose() to Tridiagonal matrices

This patch allows Tridiagonal matrices to be transposed.