fixed reverseString() error, completed findMinValue() and
findDistinctValues()