first complete implementation of FactoredMDP.