renaming &grade(UInt $) into &bitcount(UInt $)
rewriting bimap representation functions