Add an inefficient decode function
Add a quickcheck property for encode'
Remove an unnecessary pattern from encode'
Make decode' more memory efficient with foldl