Implemented functions `sum`, `prod`, `var`, `std`. Reducing a matrix over a specified dimension still missing