Modified merge sort to only support int array.