Algorithm for generating derivative structures | Synapse