redid the way the bias is computed (seems to be 10% faster), old version is nnet_old.py