first 3 tets to merge sort problem in scala