Matlab codes for REASON2, paper can be found at http://arxiv.org/abs/1402.5131