added math.forEach + tests
math.map should return a matrix when input is a matrix
added docs for forEach