fixed minmax testing before pickling, refactored algorithm call
fixed minmax testing before pickling, refactored algorithm call

srwareham/CampaignAdvisor,srwareham/CampaignAdvisor,srwareham/CampaignAdvisor,srwareham/CampaignAdvisor