Python sets and dictionaries can have quadratic-time performance | TickerVault