+ Fix bitmap conversion and add test.
~ Use CPS in bitmap building.

This gives near 10X speedup. Also use shifts instead div.