Improved Directed Graph Algorithms