multiplication function that fetches/stores arguments/results via pointers