Speed improvements to chainsInAtari.