implemented Bag-ofVisual Words