The code from the paper http://onlinelibrary.wiley.com/doi/10.1002/minf.201200092/abstract