Question: Using the frequency counts from Exercise, write a program to compress the image file using arithmetic encoding.
Exercise: Given an input image file containing it scan lines and m RGB pixel colors on each scan line, write a program to output a table of frequency counts for the pixel colors.