minor edits and re-publish demo_kruskal.m