Artificial neural network for single molecule localization