Add example about serializing to bytes and deserializing from bytes

Fix #31