some codes for exercises in AlgorithmsInC book