my solutions to the K&R exercises.