Implemented DFF/IFF/IDFF for all qubit cases