persistent homology based machine learning a survey and a comparative study