Mergesort successfully implemented