Update FrequencyBasedRanking.java