Added a time complexity note