implemented automatic termination based on change in cost
Merge pull request #8 from arnellebalane/develop

implemented automatic termination based on change in cost