tempo: switch to ints for BP calculation

This will hopefully allow the python&octave implementations to
produce more reliable indices
tempo: match python and C++

The problem was that I added some debug code to always calculate
the BP with the ground-truth (to make an illustrative figure for
the paper), but that changed the normalization of the BP score.
Whoops.