cohomology of n-torus