HomeDocA algorithm in artificial intelligence pdf