add min grap size imput paramter to createrandom Ngram queries code