Minimizing the size of `this.mask`
moving some common logic into new methods
Added shorthand for Bitmask.prototype in the source.