Subadditive and superadditive functions