Algorithms for Robot Design Synthesis by Merging