created a Scala application illustrated the use of higher order functions for a comparison in a merge sort