ShowBit class using shift operator

http://ideone.com/xKcFju