On combinatorial algorithms for indexing m-ary word weight classes