Merge k sorted arrays