Working through the exercises in the K&R book