Added K&R exercise 2.4
Added gitignore to avoid the upload of binary files