add getMin method comment