Added  SortedStack

Renamed BasicEvent to SimEvent