A flexible binomial option pricing model