Adding the implementation for synthesize

Adding the implementation of the synthesize.dsim function according to
the discussion of the mathematical representation of the double helix.