First rough working mergesort!
Updated mergesort implementation to take a predicate.