fixed mergesortpointers