WALTHAM, Mass. (AP) — WALTHAM, Mass. (AP) — Pegasystems Inc. (PEGA) on Tuesday reported second-quarter profit of $13.3 million. The…