Added recursive multiply function.