code: public ArrayList<Integer> getOccurrences() {
      ArrayList<Integer> res = new ArrayList<Integer>(this.occurrences.size());
      for (Integer e : this.occurrences) {
        res.add(e);
      }
      return res;
    }
docs: The occurrences array (copy) getter.
  
  @return motif occurrences.