UCS(Uniform Cost Search for Directed and Undirected Graph Using Vertice List and Matrix Representation