Average Case Analysis of Algorithms on Sequences by Wojciech Szpankowski