Add `isSorted`.
Add remaining exercises from chapter 2.