Fixed BranchHistory bug

In Global history, branchhistory needs to be 12 bits.
in Local history, branchhistory needs to be 10 bits.
BranchHistory's constructor was changed to allow a variable mask amount