Adding min and max for each parameter in int/double 2/3D