add PriorityArray as first datastructure to use a (very simple) segment tree