I\'m working on a project in C language and I need to encode and decode a generic file with BWT and MTF. MTF is working fine and even the BWT encoding, but I have some troub