Changed way Levels are implemented

Now the Levels in a Grammar and Graph are ordered in a discrete domain.