Psuedo code of Krskal added
Added assert