Match molecule by formula