Torsion in Bianchi IX cosmology