Fixing the prinf minimumTree