Adding double recursive function to get prefix node codes.
Adding print function for prefix code db.