mem-pool: Correctly ignore first and last addresses of subnets and adjust size