public void showSimilarity() {
        int i = 0;
        ArrayList<Integer> finalList = new ArrayList<>();
        for(Entry elem : cosineSimilarities.entrySet()) {
            finalList.add((Integer)elem.getKey());
            System.out.println("leader: ");
            System.out.print(getDocName((Integer)elem.getKey()) + " : { ");
            System.out.print(elem.getValue().toString());
            System.out.println(""); 
            // show followers
            System.out.println("followers:");
            for(Entry elem1 : followers.entrySet()) {
                if(((ArrayList<Integer>)elem1.getValue()).contains(elem.getKey())) {
                    System.out.println(" - " + getDocName((Integer)elem1.getKey()));
                      finalList.add((Integer)elem1.getKey());
                }
            }
            if(++i == B2) break;
        }
        finalCosSim(finalList);
        System.out.println("#####################\nWhole sorted list" );
        for(Entry elem : cosineSimilarities.entrySet()) {
            System.out.print(getDocName((Integer)elem.getKey()) + " : ");
            System.out.println(elem.getValue().toString());
        }
        System.out.println("#####################");
    }