Assignment 2: File Compression Solution