Statistics for Base Calling for High-Throughput Short-Read Sequencing: Dynamic Programming Solutions