Wrote more tests
Updated compress method to use previous values to save space