use context data structure for parallel stable sorting