fix typo in time complexity