A topological vertex reconstruction algorithm for hadronic jets