Added O-notation comments.