More correct solution for reduce 1 in DNA sequencing