complexity analysis addition