Some exercises in C to learn genetic algorithms