added the code to compute the bag of words to a list of videos together