gmdh c code