Pipeline bit operations to increase speed.

In testing large bitmaps saw a ~50x increase in speed
by pipelining operations.