Improvements and bug fix in Class Specific Extremal Regions algorithm and classifiers