make use of setInputValue and getOutputValue in network base class

added desiredErrorValue parameter to Network::learn