Fixed a bug in my prio algorithm for insertion between or after other nodes.