Implemented the Algorithms#multiplication