code: public boolean hasComponent(int blockId) {
          for (int i = 0; i < length; i++) {
              if (blockIdList[i] == blockId) {
                  return true;
              }
          }
          return false;
      }
docs: Determine whether or not the id of the given BasicBlock appears anywhere
  in the path.
  
  @param blockId
  the id (label) of a BasicBlock
  @return true if the BasicBlock's id appears in the path, false if not