Fix bug in merge_arrays and implement first version of MergeSort