Implement multi-threaded compression