Working NDGC implementation