Simple library for discrete simulation which supports nested simulation.