Removed the dependency of Serializer on std::vector