Improve speed (theoretically) of SKIP_LIST testing in horizon (use local variables and list comprehensions rather than a for loop and global variables)