updates to EstimateRates
Merge branch 'master' of github.com:js850/kmc_rates
improve c++ looping syntax