Rename path algorithm to trex and clean up some old files