small refactoring
added recursive method for matrix multiplication