how to do hashing for 2 dimensional arrays of size N?
===

How to do hashing for 2 dimensional arrays of size upto 15 *15.The hash function must identify each arrangement uniquely. For example for a 4*4 matrix 
hash = 0;

    hash = 0;
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 4; j++) {
				hash *= 13;
				hash += board[i][j];
				if (hash > 10000003)
					hash %= 10000003;