1 bit branch history added and accuracy has improved. make sim-tests is running with errors though.