diff first

we want smoothed differences, not differences of smoothed data
return proper number when there's no correlation
first take on turning this into an online algo