program written in C for training, most of them come from the book The C Programming Language