Implemented BinaryProtocol using Kryo for serialization.