1 Refactor the code base for OptimalGreedyBasedMapper and
WeightedIndepedentSetSelector by adding GreedyType.

2 Reduce the code size of WeightedIndepedentSetSelector.