tempo: add doubling heuristic and SVM

Still something wonky with the BP calculation.  I thought it
wasn't so significant but it distorts the svm values quite a bit,
so I'll go back and take another look at it.