complete find_similar_users() function