Extending SPN to support discrete variables
merging...