implement operator== for ByteBuffer