Add support for decoding Prufer codes