Intelligent algorithm discovers first potentially threatening asteroid