Numerical global optimization by adaptive memory programming