Fixed Max pooling layer to use a mask

Not it uses a mask instead of relying in data to back propagate the gradients.