Changed data reduction method

-Data is now reduced by only percent of problem code subset instead of
both problem code and AE.
-Added checks to make sure the reduced subset represents at least one of
each problem code.