Merge in Alex's probability tree algorithm