Move mst to graph dir
Fix bugs
Fix hist distance bugs
New function