In c

Original version (to be) written in C.