Basic implementation of Hamming[7,4] for Photonics Lab.