Added the TorusArray generic class.