Distributed quantum algorithm for Simon's problem