Added computing MST.