Avoid loose big-O usage.
Fix typos.