The mechanism of the assembly of behavior segments in novel combinations suitable for problem solution.