Compression, Indexing and Applications on Large Datasets