Lossless high entropy compression algorithm