Added rank method for learning models and expressed classify through it.