corrected update_K to avoid getting the warning messages about min & max being set to +/- Inf
corrected update_K to avoid getting the warning messages about min & max being set to +/- Inf

fboehm/xu2015