added an optimistic heuristic for ctp. modified greedyAction to also perform a Bellman update