technology A curious case of O(N^2) behavior which should be O(N) (2023) Hacker News Sat Comments gist.github.com