move mpi+threads code from wiki