Moved Mergesort functions to get rid of majority of prototypes for functions