Add Matlab interface for computing shortest path tree.