Hierarchical Cognitive Distance Learning Problem Solver