added algorithms for finding all paths between nodes