Merge pull request #12 from roobie/master

Added impl in C