GIDN added

First pass at GIDN implementation. Needs review. Commented out stopping
condition for the moment. Need to consider what results I want. If goal
required need to investigate values for different functions