fixed calc_D bug
Merge branch 'master' of github.com:borist/cis400