List of utility methods to do Matrix Swap
byte[] temp_row = pattern[row1]; pattern[row1] = pattern[row2]; pattern[row2] = temp_row; return pattern;