all pairs program added