this can be written as variance(x(::, *)).toDenseVector in breeze now