added all basic algorithms in Graph.