Used memcpy instead of for loop in mergesort