Add custom inner_product function with only product, no sum, no init