esa-smax-scan with queues not quite finished but stable
checking for intervals fixes linear scan algo