An error control code scheme for multilevel Flash memories