Completed the HDB3 encoder