reset sum along with sequence_index
debug NX0 length and number
check for exceptional case total_length < 1
Silent on 0 length input
Merge pull request #2 from tomoakin/no_reset

N50, N70, ..., N90 bug fix