mergesort arraylist