Classes for fast maximum entropy training | Synapse