Add complexity analysis