Improved multi-threading

Number of hidden nodes needs to be an even number, for now. Added al
possible components to multithreading. Need to reduced duplicated code
by writing one method that takes for parameters: two upper and Two
lower bounds.