sort merge, and isAnagram now work properly (may not free memory correctly)