implementing unpack4bits.