Added BCH encode and decode to MTD write and read respectively

Signed-off-by: Joshua Lamorie <joshua.lamorie@xiphos.com>