Added reduce call in function "min"
Added min test for n-dimensional matrices
Added reduce calls from "mean" function