matrix := [ [Z(27)^3,0*Z(27),Z(27)^2,Z(27)^4,Z(27)^3,Z(27)^11,Z(27)^5,Z(27)^4], [0*Z(27),Z(27)^14,Z(27)^5,Z(27)^23,Z(27)^14,Z(27)^20,Z(27)^2,Z(27)^25], [Z(27)^7,Z(27)^24,Z(27)^18,Z(27)^26,Z(27)^26,0*Z(27),Z(27)^12,Z(27)^10], [Z(27)^21,Z(27)^20,Z(27)^13,Z(27)^4,Z(27)^13,Z(27)^9,Z(27)^20,Z(27)^20], [Z(27)^22,Z(27)^3,Z(27)^13,0*Z(27),Z(27)^4,Z(27)^25,Z(27)^12,Z(27)^16], [Z(27)^21,Z(27)^24,Z(27)^11,Z(27)^19,Z(27)^24,Z(27)^17,0*Z(27),Z(27)^26], [Z(27)^4,Z(27)^25,Z(27)^7,Z(27)^8,Z(27)^21,Z(27)^26,Z(27)^20,Z(27)^26], [Z(27)^23,Z(27)^4,Z(27)^14,0*Z(27),Z(27)^8,Z(27)^26,Z(27)^13,Z(27)^20] ];