Converted serializer from c-style to c++
Merge pull request #17 from akumetsuv/classy-serializer

Converted serializer from c-style to c++