Merge sort added + small changes in other things.