Modify a little, provide a better result for Greedy, add new parameter for both Greedy and Randomized