Add C implementation. Clean repo.