Managing Pending Events In Sequential & Optimistic Parallel Discrete Event Simulations