Added support for binary serialization.
Merge pull request #33 from dkorolev/binary_serialization

Added support for binary serialization.