code: void add(TimerTask task) {
          // Grow backing store if necessary
          if (size + 1 == queue.length)
              queue = Arrays.copyOf(queue, 2*queue.length);
  
          queue[++size] = task;
          fixUp(size);
      }
docs: Adds a new task to the priority queue.