Compression estimates for a class of dictionary based compressors