adding mergesort