Improved versions of prevOf/nextOf (performant enough to be used as iterators)

Also added dot2png.bat as a reminder on how to use dot.exe (Graphviz)