inner_product chapter 1 problem 4