Reads 12 bit values from a binary file and writes the largest & last 32 values to a txt file. Special considerations for space/time/stack optimization.