Input stream class to operate on bits.