Added toggle bit function to shift class