simple implementation of concrete gmdh