Updated Q5 and Q4.

Updated Q5 to run in polynomial time.  Q4 expanded number of items to
sort.