Added a bch encoder