adding methods to compress and decompress using the file system

adding methods to compress and decompress using the file system, which keeps the memory consumption always low not matter the size of the file to be compressed or decompressed