simple c programs for academic use