class library: bitTest method minor speed improvement

bitAnd is quicker than &
class library: minor speed improvement to several methods replacing & and >> with bitAnd and rightShift
class library: minor speed improvement to several methods replacing & and >> with bitAnd and rightShift etc
Merge remote-tracking branch 'upstream/master'
Merge pull request #962 from redFrik/master

class library: speed improvements in a few places where bit operations are used.

I can't see any reason to object to this, so merging