Improvement in CPU usage.

BitField.countSet was slow. Improved by lookup table.