added simple mergesort