solved mergesort with explicit