Extending rule based classifiers for dealing with imbalanced data