UPLOAD Merge Sorted Array problem