added SimpleNChanceCache class