updtae core.matrix version
import normalise-probabilities function