Adds merge_sort_in_place, which runs slower but requires no memory