A flexible lattice model for pricing contingent claims under multiple risk factors