compressing, sorting and indexing sv data