The valueList and also .Index changes.

Hello, in case you were to decide to include both https://github.com/shivawu/topcoder-greed/pull/45 and https://github.com/shivawu/topcoder-greed/pull/44 . This branch includes the changes from both branches simultaneously, fixing a conflict that would appear if you pull them separately.