correct complexity of our algorithm