Pierce scores 34 as Celtics top Mavs double-OT