Statistics for Base calling for high-throughput short-read sequencing: dynamic programming solutions