Code for vectorizing Integrals