Fixed a small issue with HBSE where the total number of pivots exceeded the number of nodes.
Changed the check
Changed the check to work for all cases
Merge pull request #75 from Sotera/hbse_pivot_fix

Fixed a small issue with HBSE pivots