Add some comments

These comments are about time complexity of the algorithm.