Program for multiplying matrices of large sizes efficiently