borders aren't ignored anymore for max pooling in mlp.py