https://www.u-cursos.cl/ingenieria/2017/2/CC7310/1/material_docente/o/1894887
2016-CPM-ComputingOptimalPrefixFreeCodesWithoutSorting-Barbay.pdf