Added matrix multiplication function