Changed BoolStack Implementation

Changed the implementation of BoolStack from a fixed-length array of
booleans to a Stack<Boolean>. This ensures that the BoolStack never
becomes full.