Implemented shiftIn() and shiftOut()