Source Code for QUICK MST