I want to implement multidimensional chained prediction market options to be sold online as smart digital contracts. These chained options/contracts will be time-sensitive i.e. they will evolve with time and be linked to real-time data resources like quandl.com, https://blockchain.info/api/exchange_rates_api and http://www.xignite.com/xNews.xml/GetMarketNewsHeadlines. Please find the PDF file attached here describing a multidimensional contract with multiple decisions, states and dimensions. Which matrix functions, variables and superfunctions should I use? Please help.