modified e-greedy algorithm