Added first pass of block encoding and decoding. The DCT implementations seem okay but something else is off with the round-trip.