rebuilt computeDeltas() under BMLNNV to match Adam's changes in d4j