Optimized recieving of distMatrix
Improved scheduler