Added a thread to run the longest_path calculation since it's NP-complete...