attempted to implement mergesort, still somewhat broken, commiting to save progress.