Exercises from K&R2.