tested succesfully matrix multiplication