In NodePool, added Dictionary<int, Node> to keep track of node id.
Used a list, instead of array, to keep track of the nodes.