solutions to  coreman book programs