6: compute N the frequency vector of all size m and size m + 1 words in Y;