Email Record: Improved linear systolic algorithms for substring statistics.