Generic Artificial Intelligence Algorithms for solving AI based problems