Browsing by Subject Matching tree algorithm