NN factory; trainer works with pairs + can disable learning; tanh learns sinus test; bad tanh derivative test