Added avg_gap.tex by Stanislav