Added sort program from section 5.6.