K and R book exercises