Debug BoW: adding a routine for handling exceptional cases of  one-class problem