Implement Snak serialization and unserialization

Implement Snak Serializer and Unserializer