Duality of Tensor Algebras