Modeling a Simple Non-Associative Learning Mechanism in the Brain of Caenorhabditis elegans