Update shiftregister.cpp