prim: added support to display currently processing line in algorithm