Modified Vertex.java with more member variables, getters and setters. Added code for BFS and DFS algorithms with a test case