Procedural c implementations added.

New implementations that solve the problem in a different way.