Add Exercise 18: Pointers to Functions, with modification to use pointer to sorting function as well