Added MatrixChange::ChoosePmidNode and a test for this function.