code: function setRefs(primary, secondary){
          secondary.prev = primary;
          primary.next = secondary;
  
          secondary.rootFlow = primary.rootFlow;
      }
docs: This function is used to set the linked references for Flows (like LinkedLists)
  @param primary the current Flow
  @param secondary the newly created Flow based on the primary