Solve part a) of Problem 28

Part b) is TBD.

Note I reused a merge sort I had written on May 10th, with slight
modifications.