Very Basic Algorithms of Artificial Intelligence using Java