Sequeuce detection on run-length-limited codes