Logical Interaction Networks In Biology: Theory And Application