Implement QR encoder and decoder, write test cases with sample images