implement a feature to calculate the number of cache hits for ranking
finish implementing ranking each hour feature
improve code