A simple and optimized length estimator for digitized DNA contours