mcReduce seems to work for a simple case. Code needs tidying though