Added ANSI C implementation to the TeX manuscript