NN functions

up to and including sigmoid