helper, more general adapter and notebook example

Adds a learner helper and adapt answer sets to ILogicalNetwork for more
generality.
Update notebook example for cellnopt.core