added implementation of spanning tree algo and its visualization