loop fusion and vectorization of sum example