Use vector instead of unordered_map for state frequencies

In defaultPolicy() a hash table used to be used to compute the mode. Use a
vector of number-of-states size instead. This will not work with state spaces
that are too large.