MRG: Minimal spanning tree (backport from scipy 0.13)

Backported (with test) so that I can use it in PR1830.

I don't believe docs etc are needed for this type of PR, but let me know if they are.