Tackling Class Imbalance with Ranking