FreezeRecovery method added
1. Added copyToOneChunk and mergeToOneChunk methods
2. Fixed some type casting bugs.