Solving the KnR Exercises