Added tree min distance. Closes #111