fix simulated annealing for bitstrings