Implemented a multi_indexed_iterator template for a cpp iterator of multiple ndarrays. For now just the case N=3.