Code from my Data Compression course, ELEC 465.