Added ruleset merger script

Merger script added.
TODO: fix it to work with the correct tree