A Distributed Algorithm For Spanning Tree