pathsum