Longest path core function

Added single_target_longest_path_length to algorithms/dag.py and tets for it.