Persistent reachability homology in machine learning applications