Serious bug was fixed in passing partition number to threads while it was
captured by value and accidentally modified in next spet of for-loop
before used in current thread launch ( see line 413 of matrix.h )