Add time-complexity analysis of operations.
Add references.