mergesort and quicksort improvement

Realized mergesort and quicksort could be done way simpler.
Added a reverseString function which I did to get use to make small and
nice functions.