Modify rete visitation to be iterative, rather than recursive;