Add time complexity analysis.