Serialization

Serialization for large rule bases.