Multi threaded java code to multiply 2 matrices