Different weights for cost functions, removed linkToDrop from getGain()
Minor
Speed up getDependencyCost()
Use set instead of vector for the list of children