add codegen factory method
first mixed codegen with delite DenseVector using lancet compile