public List<MeanRating> getTopNeighbors(int userId, int neighborCount) {
        List<Integer> userIds = ratingsTable.getUserIds();

        List<MeanRating> similarityList = new ArrayList<MeanRating>();

        for (Integer currentUserId : userIds) {
            if (userId != currentUserId.intValue()) {
                similarityList.add(new MeanRating(currentUserId.toString(), computeSimilarity(userId, currentUserId)));
            }
        }

        Collections.sort(similarityList);

        return similarityList.subList(0, neighborCount);
    }