Significant improvement in encoding speed (using a hash map for block lookups) also fixed an error where encoded rows were > 256