Fixed issue #21: when binning matrices, we now use the mean instead of the sum

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>