Changing % operator to be elementwiseProd everywhere. It's overloaded, but that's alright