Given k sorted arrays, merge them into one sorted array.
Input: each line is a comma-separated sorted array. Output: merged array, space-separated.
1,4,5 1,3,4 2,6
1 1 2 3 4 4 5 6
[1, 4, 5]
[1, 3, 4]
[2, 6]