@Override
 public void setAll(State S, Action A, double q, double e) {
   Set s = array.get(getHash(S, A));
   s.q = q;
   s.e = e;
   array.set(getHash(S, A), s);
 }
 @Override
 public void setQ(State S, Action A, double q) {
   Set s = array.get(getHash(S, A));
   s.q = q;
   array.set(getHash(S, A), s);
 }