merge and bubble sort