mergesort took me too long :(