Added Sigmoidal Function

Added a sigmoidal function from Robert's slides to be calculated at each
node.