Fixed Matrix.Mean()

There was a flaw in my code..