A new learning algorithm for the hierarchical structure learning automata operating in the nonstationary S-model random environm