Fixed a bug in Bag.java, and implemented a undirected graph by using bag datastructure.