Added CacheSerializer and Deserializer

Deleted CacheUtil and added two new classes CacheSerializer and CacheDeserializer.