Prototype bit mapping algorithm.