Optimality Of The Generalized Context Model