Browsing by Subject Recognition algorithm