adding algorithm dir