Added method getOrdinals in OrdinalAllocator to derive the relation
between ordinals and their sequential relations.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>