Add dumping heap to file
Replaced flush method of Cache by removeAllValues method
Added offset to methods to convert bytes to object
Added numOfLocks parameter to DataLock