working on logic of the seriation ... changing it to be a right to left evaluation throughout.