Updates a given node with a new value and moves entries in the tree
structure until the tree has the property that each parent is less than
its children
Recalculates a for the reactions needed, according to the dependency
graph and the last reaction executed (next reaction) Also, updates the
tau (scheduled time of execution) for those reactions.