Implemented map and sortPar as given in chapter 7.4.
Exercise 7.5: Implemented sequence for Par.