Changed matrices, added two more dimensions to Zn and to associated matrices