greedy policy and n armed bandit compiles