public List<String> getMostFrequentWords(List<List<Object>> sequenceList, int highestCount) {
        List<String> frequentWordList = new ArrayList();
        for (int i = 0; i < sequenceList.size(); i++) {
            List<Object> countAndSequenceList = sequenceList.get(i);
            //only get the most frequent words from the list
            if ((Integer) countAndSequenceList.get(0) == highestCount) {
                String sequence = (String) countAndSequenceList.get(1);
                //check if sequence is already in list
                if (!alreadyExistsInList(frequentWordList, sequence)) {
                    frequentWordList.add(sequence);
                }
            }
        }

        return frequentWordList;
    }