My attempt at a JPEG encoder/decoder in C that will convert BMP to JPEG and back