Optimizing merge sort with Stream