Refactoring. Improved getLikeMindedUsers method.