Added serialization utilities.
Added serialization implementation that uses the Kryo serialization library.