Mergesort Improvement

Changed Mergesort to be more "functional"