Implemented new algorithm for constructing trending page