static int test(ArrayList<byte[]> hashes, byte[] cur_hash)
	{
		for (byte[] b: hashes) {
			int i; for (i = 0; i<b.length /*must be equal && i<cur_hash.length*/; i++) if(b[i] != cur_hash[i]) break;
			if (i == b.length) return i;
		}
		return -1;
	}