add basic_alg for learning algorithms