templating sd_add
predict is mostly templated
removed a bunch of commented code
removed more code
got rid of non-offsetted version
fixed subtle bug
Merge pull request #84 from hal3/master

prediction is now templated, and somehow about 19% faster as a result :)