Matrix ZigZag order code