Chapter 3.6 : How to vectorize the computation