PARQUET-1267: [C++] replace "unsafe" std::equal by std::memcmp

Author: rip.nsk <rip.nsk@gmail.com>

Closes #451 from rip-nsk/PARQUET-1267 and squashes the following commits:

12d2386 [rip.nsk] fix of the fix.
7682c83 [rip.nsk] PARQUET-1267: [C++] replace "unsafe" std::equal by std::memcmp
diff --git a/src/parquet/types.h b/src/parquet/types.h
index 2179d50..04cfc4b 100644
--- a/src/parquet/types.h
+++ b/src/parquet/types.h
@@ -155,7 +155,7 @@
 };
 
 inline bool operator==(const ByteArray& left, const ByteArray& right) {
-  return left.len == right.len && std::equal(left.ptr, left.ptr + left.len, right.ptr);
+  return left.len == right.len && 0 == std::memcmp(left.ptr, right.ptr, left.len);
 }
 
 inline bool operator!=(const ByteArray& left, const ByteArray& right) {