Decreased node search time to 0(1). Moved nodes to global.