Implemented second recommendation algorithm