pep8 compliance
Fixed truncation problems: wrong end, wrong number.
Improved correlation_sum algorithm using the approach in Kanzler along with numpy broadcasting.
Replaced possibly confusing "nobs_full" with "nobs"
Significantly improved k statistic algorithm using the approach in Kanzler.