add send func to task1 and task2
add send func to task3
add receive func to main thread
change allocate type fr matrix
remove sleep