add TreeSet and RegExp dependencies