Solutions to Kernighan and Ritchie 2nd Edition