Algorithm For Minimum Spanning Tree