Counting Zeros in Random Walks on the Integers and Analysis of Optimal Dual-Pivot Quicksort.