Added a first simple 'C' implementation