Global optimization of atomic structure enhanced by machine learning