LinkedList vs ArrayList

change to

 public PVector add(PVector pv) {
    myArray.add(pv);
  }