[fix] de Bruijn
[fix] use dict without sort, because order is essential when finding in depth (Euler)