fix typo and remove mergesort as it is not working