update to latest core.matrix
optimised variance computation using accumulator