MST using min heap and unordered list