use breeze DenseVector and DenseMatrix