Implementation of different algorithms from AI and algorithm books