Compress list into lists.