Add method to determine the relative vertical position of elements

This is an interface-only method by which KIF can decide whether a table is in a certain order.