point3: min and max functions