Lp bounds for a maximal dyadic sum operator