A clever algorithm generating millions of random ideas is turning the tables on patent trolls