Added a function to multiply matrices