Add MST implementation and pretty print it using dot.