Improved dotMPI communication; added matrix cache