Applied DNA Sciences, a Stony Brook-based biotechnology company, has entered a $5 million nonbinding licensing agreement with a Canadian cannabis consultancy that will use the Long Island firm’s “molecular tagging” technology in the marijuana industry.