Bits shift implementation