add Kruscal algorithm and merger all graphic functions in a new header file.