Compares byte per byte 2 byte arrays
private static bool CompareBytes(IList<byte> firstArray, IList<byte> secondArray)
{
if (firstArray.Count != secondArray.Count) return false;
for (int i = 0; i < firstArray.Count; i++)
{
if (firstArray[i] != secondArray[i]) return false;
}
return true;
}