trying to do the De Bruijn indexes computation
trying to do the DB indexes calculation which is far from trivial