Created more data structures for MST