Solving all the exercises from Practical C book