updated for auto testing of distributed code
added timing and sum matrix calculation