Use list to cache number of reachable nodes; was done incorrectly with sorted set