JAVA-735 Binary.java should implements Equals and HashCode

Fix for the issue