I\'m writing a basic encoding algorithm in c++ that shifts and sorts a string to compress it. I\'ve created a function called insertionSortEncode(input) that encodes a text file