added ugly recursive CS solution to problem #2.  To be followed by an elegant solution