Implementing a file compressor