Using csv reader in mapper, added index check in reducer.