added some directed graphs algorithms