Problem Statment
Given K sorted arrays each with N elements merge them and output the sorted array.
First line contains 2 space separated integers K and N. Next lines contain K*N space separated integers
Elements of array <= |10^15| N <= 10^5 K <= 10
Input Format
3 4
1 3 5 7 2 4 6 8 0 9 10 11
Output Format
0 1 2 3 4 5 6 7 8 9 10 11
Explanation
If we were to combine all the arrays into one and then sort it , the output would be as above.